package com.billsystem.mapper;

import com.billsystem.pojo.Dream;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface DreamMapper {

    List<Dream> queryListByUid(int uid);

    int addDream(Dream dream);

    int deleteDream(Dream dream);

    Dream queryDream(int id);

    int updateDream(Dream dream);

    //添加或修改收支记录时，修改账户余额
    int updateState(Dream dream);

}
